//
//  AddFriendView.m
//  RPay
//
//  Created by hzy on 2017/11/4.
//  Copyright © 2017年 Charlie. All rights reserved.
//

#import "AddFriendView.h"

@implementation AddFriendView

-(void)awakeFromNib{

    [super awakeFromNib];
    UITapGestureRecognizer * tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(removeFromSuperview)];
    [self addGestureRecognizer:tap];
}

- (IBAction)cancleBtnClick:(id)sender {
    [self removeFromSuperview];
}
- (IBAction)sureBtnClick:(id)sender {
    if (self.sureBlock) {
        self.sureBlock(self.nameTextf.text);
    }
}




@end
